<!-- 归档页 -->

@extends('layout')

@section('content')
<div class="archive-title">
    <h2 class="archive-icon">归档</h2>
    <div class="archiveslist archive-float clearfix">
        <ul class="archive-list">
            @foreach ($archives as $archive)
            <li class="archive-list-item">
                <a class="archive-list-link" href="/archive/{{ $archive->year }}/{{ $archive->month }}/">{{ $archive->year }} {{ $archive->month }}月</a><span class="archive-list-count">{{ $archive->count }}</span>
            </li>
            @endforeach
        </ul>
    </div>
</div>

<div id="main" class="all-list-box">
    @foreach ($articles as $article)
    <section class="post" itemscope itemprop="blogPost">

        <a href="/article/{{ $article->id }}" title="{{ $article->title }}" itemprop="url">

            <h1 itemprop="name">{{ $article->title }}</h1>

            <p itemprop="description">
                {{ $article->description }}
            </p>

            <time datetime="{{ $article->created_at }}" itemprop="datePublished">{{ $article->created_at }}</time>
        </a>
    </section>
    @endforeach


</div>

@endsection